import React from 'react'
import Item from './components/Item'
const list = [
  { id: 1, name: 'jack', content: 'rose, you jump i jump' },
  { id: 2, name: 'rose', content: 'jack, you see you, one day day' },
  { id: 3, name: 'tom', content: 'jack,。。。。。' },
]
export default function App() {
  return (
    <ul>
      {/* 使用组件的代码写在哪里,组件的结构就渲染在哪里 */}
      {list.map((data) => {
        return <Item key={data.id}></Item>
      })}
    </ul>
  )
}
